package view.skill
{
import flash.display.DisplayObject;

import values.avatar.IAvatarValue;

import view.component.window.WindowComponent;
import view.interfaces.ISkillUI;

/**
 * SkillUI
 * @author jliang
 *
 */
public class SkillUI extends WindowComponent implements ISkillUI
{
	//==========================================================================
	//  Constructor
	//==========================================================================
	public function SkillUI()
	{
		super();
	}
    //==========================================================================
    //  Properties
    //==========================================================================
    public function get displayObject():DisplayObject
    {
        return this;
    }
	//==========================================================================
	//  Overridden methods: Component
	//==========================================================================
	override protected function get skinReference():String
	{
		return "swf.ui.SkillUISkin";
	}
	
	override protected function get proxyMapping():Array
	{
		return [ 
			{ skin:"", classRef: SkillUIProxy, id:"window" }
		].concat(super.proxyMapping);
	}
	
	override public function get width():Number
	{
		return 670;
	}
	
	override public function get height():Number
	{
		return 516;
	}
	//==========================================================================
	//  Public methods
	//==========================================================================
	public function showHeroSkill(avatar:IAvatarValue = null):void
	{
		SkillUIProxy(window).showHeroSkill(avatar);
	}
	
	public function refresh():void
	{
		SkillUIProxy(window).refresh();
	}
}
}



